package com.sheepone.util.structure.node;

/**
 * @author Miss.杨
 * @description
 * @since 2024/5/5 - 11:01
 */
public class BinaryTreeNode<T> extends ValueNode<T> {
    private BinaryTreeNode<T> left;
    private BinaryTreeNode<T> right;

    public BinaryTreeNode(T value) {
        super(value);
    }

    public BinaryTreeNode(T value, BinaryTreeNode<T> left, BinaryTreeNode<T> right) {
        super(value);
        this.left = left;
        this.right = right;
    }

    public BinaryTreeNode() {
    }

    public BinaryTreeNode<T> getLeft() {
        return left;
    }

    public void setLeft(BinaryTreeNode<T> left) {
        this.left = left;
    }

    public BinaryTreeNode<T> getRight() {
        return right;
    }

    public void setRight(BinaryTreeNode<T> right) {
        this.right = right;
    }
}
